package cn.jiyun.controller;

import cn.jiyun.service.StudentService;
import com.alibaba.dubbo.config.annotation.Reference;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Auther:ASS
 * @Date:2022/12/7 15:05
 */
@RestController
@RequestMapping("student")
public class StudentController {
    @Reference
    StudentService studentService;

    @RequestMapping("findPage")
    public PageInfo findPage(Integer pageIndex){
        return studentService.findPage(pageIndex);
    }
}
